package Java常用工具API.Object类.JavaBean类重写Object类中的方法;

public class Test {
    public static void main(String[] args) {
        Standard s=new Standard("刘明福",22,"Java工程师");
        String zf=s.toString();
        System.out.println(s.toString());
        System.out.println(zf);
        System.out.println("---------------");

        //测试重写equals方法
        Standard s2=new Standard("刘明福",22,"Java工程师");
        System.out.println(s.equals(s2));

    }
}
